package com.reactive.springbootreactive.dao;

import com.reactive.springbootreactive.entity.User;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import reactor.core.publisher.Flux;

public interface UserDao extends ReactiveMongoRepository<User, String> {

    Flux<User> findByPhoneOrderByCreateTime(String phone, Pageable page);
    
}
